<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:p="http://primefaces.prime.com.tr/ui">


<h:head>
	<script type="">
	var pieChartStyle = {
		padding:20,
			legend:{
				display:"right",
				spacing:10
		}
	};
</script>

	<title>Cudex | Barraca de Hierros</title>
	<link rel="shortcut icon" href="imganes/favoico.jpg" />
	
</h:head>

<h:body>
	<p:layout fullPage="true">

		<p:layoutUnit header="#{loginBean.logedUser}" position="top"
			height="80" resizable="true" closable="false" collapsible="true">
			<h:form>
				<h:commandButton align="right" value="Salir"
					action="#{loginBean.salir}"></h:commandButton>
			</h:form>
		</p:layoutUnit>

		<p:layoutUnit position="bottom" height="100" align="center"
			header="Powered by" resizable="true" closable="false"
			collapsible="true">
			<table align="center">
				<tr>
					<td align="left"><h:graphicImage value="images/logoCh.jpg"
							title="Sofuy | Software from Uruguay" />
					</td>
				</tr>
			</table>
		</p:layoutUnit>

		<p:layoutUnit header="Menu" position="left" width="200"
			resizable="true" closable="false" collapsible="true">

			<h:form>
				<p:growl id="messages" />
				<p:menu type="sliding" style="width:180px">
					<!--				<p:menu type="tiered" style="width:180px" >-->

					<p:submenu label="Gestion" id="gestion">
						<p:menuitem value="Ingreso Facturas" 
							update="messages" icon="ui-icon ui-icon-disk" />
						<p:menuitem value="Buscar Facturas" update="messages" icon="" />
						<p:menuitem value="Listar" update="messages" icon="" />
					</p:submenu>

					<p:submenu label="Pedidos" icon="">
						<p:menuitem value="Nuevo Pedido" url="/altaUsuarios.xhtml"
							update="messages" icon="ui-icon ui-icon-disk" />
						<p:menuitem value="Modificar Pedido" update="messages"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="Eliminar" update="messages"
							icon="ui-icon ui-icon-close" />
						<p:menuitem value="Listar" update="messages" icon="" />
					</p:submenu>


					<p:submenu label="Clientes" icon="">
						<p:menuitem value="Guardar" url="/altaClientes.xhtml"
							update="messages" icon="ui-icon ui-icon-disk" />
						<p:menuitem value="Modificar" update="messages"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="Eliminar" update="messages"
							icon="ui-icon ui-icon-close" />
						<p:menuitem value="Listar" update="messages" icon="" />
					</p:submenu>
					<p:submenu label="Empleados" icon="">
						<p:menuitem value="Guardar" url="/altaUsuarios.xhtml"
							update="messages" icon="ui-icon ui-icon-disk" />
						<p:menuitem value="Modificar" update="messages"
							icon="ui-icon ui-icon-arrowrefresh-1-w" />
						<p:menuitem value="Eliminar" update="messages"
							icon="ui-icon ui-icon-close" />
						<p:menuitem value="Listar" update="messages" icon="" />
					</p:submenu>
				</p:menu>
			</h:form>

		</p:layoutUnit>

		<p:layoutUnit position="center">
			<ui:insert name="title">??? View title ???</ui:insert>
			<ui:insert name="content">??? View content ???</ui:insert>
		</p:layoutUnit>

	</p:layout>
</h:body>
</html>